<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/includes/tags.jsp" %>

<h3 style="text-align:center;"><s:text name="search.result"/>: </h3>

<div class="center_text" id="search_result">
    <s:iterator value="data.results.gwebSearch">
        <div>
            <a href='<s:property value="url" escape="false"/>' title='<s:property value="titleNoFormatting"/>'>
                <s:property value="title" escape="false"/>
            </a><br/>

            <s:property value="content" escape="false"/><s:if test="%{''.equals(content)}"><br/></s:if>

                <%--<s:property value="unescapedUrl"/><br/>--%>
            <a href='<s:property value="url"  escape="false"/>' title='<s:property value="titleNoFormatting"/>'>
                <s:property value="visibleUrl"/></a>&nbsp;
            <a href='<s:property value="cacheUrl"/>' target="_blank" title='<s:text name="google.cache"/>'><s:text
                    name="google.cache"/></a>
            <br/>
                <%--<s:property value="titleNoFormatting"/><br/>--%>

        </div>
    </s:iterator>

</div>
<div id="search_paging">
    <s:iterator value="data.results.cursor.pages">
        <span>
            <s:if test="data.results.cursor.currentPageIndex== label">
                <s:property value="label"/>
            </s:if>
            <s:else>
                <s:url var="nextPage" namespace="/search" action="google">
                    <s:param name="start" value="start"/>
                    <s:param name="search" value="search"/>
                </s:url>
                <a href='${nextPage}' title='<s:property value="label"/>'><s:property value="label"/></a>
            </s:else>
        </span> &nbsp;
    </s:iterator><%--
    <a href='<s:property value="data.results.cursor.moreResultsUrl"/>' title='<s:text name="ui.more"/>' target="_blank"><s:text
            name="ui.next"/></a>--%>
</div>